#!/bin/bash

if [ $1 ]
then
  ACTIONS=( $1 )
else
  ACTIONS=(
    # Enable modules, features, themes.
    enable_modules
    enable_themes

    # Generate users, content.
    generate_users
    generate_content
  )
fi

for ACTION in ${ACTIONS[@]}
do
  chmod 777 $ACTION
  ./$ACTION
done
